﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
using System.Xml;
using System.Data;

public partial class Employee_InterviewProposed : System.Web.UI.Page
{
    EmployeeMethord EM = new EmployeeMethord();
    protected void Page_Load(object sender, EventArgs e)
    {
        LoadMessage();
    }
    public void LoadMessage()
    {
        try
        {
            SqlDataReader dr = EM.ReturnInterviewNotAppcess(Session["User"].ToString());
            while (dr.Read())
            {
                DataSet ds = new DataSet();
                ds.ReadXml(Server.MapPath("~/ProposedInterview/" + Session["User"].ToString() + "_" + dr.GetInt32(0) + ".xml"));
                if (ds.Tables.Count > 0)
                {
                    GView.DataSource = ds;
                    GView.DataBind();
                    break;
                }
            }
        }
        catch (Exception ex)
        {
        }
    }
    protected void GridView1_PageIndexChanging(object sender, GridViewPageEventArgs e)
    {

    }
}